//
//  BRScanResultModel.h
//  BrezzeSaaS
//
//  Created by IOS on 2025/01/27.
//  Copyright © 2025 Brezze GWG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BRBaseModel.h"

NS_ASSUME_NONNULL_BEGIN

// 前向声明
@class BRRentboxModel;
@class BRAdModel;
@class BRRentConfigModel;

/// 扫码结果数据模型
@interface BRScanResultModel : BRBaseModel

/// 手机号
@property (nonatomic,strong) NSString *mob;
/// 设备信息
@property (nonatomic,strong) BRRentboxModel *rentbox;
/// 用户优惠券列表
@property (nonatomic,strong) NSArray *userCoupons;
/// 广告列表
@property (nonatomic,strong) NSArray *ADList;
/// 类型
@property (nonatomic,assign) BOOL type;
/// 计费配置
@property (nonatomic,strong) BRRentConfigModel *config;
/// 优惠时间
@property (nonatomic,assign) NSInteger discountTime;

@end

/// 机柜信息模型
@interface BRRentboxModel : BRBaseModel

/// 机柜ID
@property (nonatomic,assign) NSInteger rentboxId;
/// 产品ID
@property (nonatomic,assign) NSInteger productId;
/// 设备ID
@property (nonatomic,assign) NSInteger deviceId;
/// 设备UUID
@property (nonatomic,strong) NSString *deviceUuid;
/// 位置ID
@property (nonatomic,strong) NSString *posId;
/// 代理商ID
@property (nonatomic,assign) NSInteger agencyId;
/// 员工用户ID
@property (nonatomic,assign) NSInteger staffUid;
/// 站点ID
@property (nonatomic,assign) NSInteger siteId;
/// 绑定代理商时间
@property (nonatomic,assign) NSInteger bindAgencyTime;
/// 备注
@property (nonatomic,strong) NSString *remark;
/// 是否故障
@property (nonatomic,assign) BOOL failure;
/// 是否禁用
@property (nonatomic,assign) BOOL disabled;
/// 是否删除
@property (nonatomic,assign) BOOL del;
/// 创建用户ID
@property (nonatomic,assign) NSInteger createUid;
/// 创建时间
@property (nonatomic,assign) NSInteger createTime;
/// 更新时间
@property (nonatomic,assign) NSInteger updateTime;
/// 是否在线
@property (nonatomic,assign) BOOL online;
/// 位置
@property (nonatomic,strong) NSString *place;

@end

/// 广告模型
@interface BRAdModel : BRBaseModel

/// 广告ID
@property (nonatomic,assign) NSInteger adId;
/// 标题
@property (nonatomic,strong) NSString *title;
/// 文件类型
@property (nonatomic,assign) NSInteger fileType;
/// 图片URL1
@property (nonatomic,strong) NSString *url1;
/// 图片URL2
@property (nonatomic,strong) NSString *url2;
/// 图片URL3
@property (nonatomic,strong) NSString *url3;
/// 跳转链接
@property (nonatomic,strong) NSString *forward;
/// 播放时间
@property (nonatomic,assign) NSInteger playTime;
/// 权重
@property (nonatomic,assign) NSInteger weight;
/// 屏幕亮度
@property (nonatomic,assign) NSInteger screenBrightness;

@end

/// 计费配置模型
@interface BRRentConfigModel : BRBaseModel

/// 押金（分）
@property (nonatomic,assign) CGFloat securityFee;
/// 总部押金（分）
@property (nonatomic,assign) CGFloat securityHQFee;
/// 机柜押金（分）
@property (nonatomic,assign) CGFloat securityBoxFee;
/// 单次押金（分）
@property (nonatomic,assign) CGFloat securitySingleFee;
/// 最晚支付分钟数
@property (nonatomic,assign) NSInteger minuteLatestPay;
/// 免费分钟数
@property (nonatomic,assign) NSInteger minuteFree;
/// 计费周期（分钟）
@property (nonatomic,assign) NSInteger minuteCycle;
/// 首分钟
@property (nonatomic,assign) NSInteger fistMinute;
/// 首分钟费用（分）
@property (nonatomic,assign) CGFloat fistMinuteFee;
/// 周期费用（分）
@property (nonatomic,assign) CGFloat cycleFee;
/// 每日费用（分）
@property (nonatomic,assign) CGFloat dayFee;
/// 总部押金比例
@property (nonatomic,assign) CGFloat securityHQRatio;
/// 代理商押金比例
@property (nonatomic,assign) CGFloat securityAgencyRatio;
/// 会员等级0
@property (nonatomic,strong) NSString *member0;
/// 会员等级1
@property (nonatomic,strong) NSString *member1;
/// 会员等级2
@property (nonatomic,strong) NSString *member2;
/// 会员等级3
@property (nonatomic,strong) NSString *member3;
/// 会员等级4
@property (nonatomic,strong) NSString *member4;
/// 会员等级5
@property (nonatomic,strong) NSString *member5;
/// 会员等级6
@property (nonatomic,strong) NSString *member6;
/// 会员费用0
@property (nonatomic,assign) CGFloat memberFee0;
/// 会员费用1
@property (nonatomic,assign) CGFloat memberFee1;
/// 会员费用2
@property (nonatomic,assign) CGFloat memberFee2;
/// 会员费用3
@property (nonatomic,assign) CGFloat memberFee3;
/// 会员费用4
@property (nonatomic,assign) CGFloat memberFee4;
/// 会员费用5
@property (nonatomic,assign) CGFloat memberFee5;
/// 会员费用6
@property (nonatomic,assign) CGFloat memberFee6;
/// 保质期
@property (nonatomic,strong) NSString *shelfLife;
/// 是否优先
@property (nonatomic,assign) BOOL priority;
/// 单次总部
@property (nonatomic,assign) NSInteger singleHq;
/// 单次代理商
@property (nonatomic,assign) NSInteger singleAgency;

@end

NS_ASSUME_NONNULL_END

